// .txt

beginzonescript;

variables;

short im_hostile = 0;
short last_abil;
short counter = 0;
short set_ter1 = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(900,"Scout Salatan");
	if (gf(9,12) > 0)
		erase_char(900);
		
	set_name(925,"Dhagan Raider");
	set_name(926,"Dhagan Raider");

//	set_attack_range(,);

//	add_ability(short which_char_or_group,short which_slot,short which_ability,0);

	if (is_town_clear(ME))
		clean_up_town();

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	if ((gf(9,14) > 0) && (gf(9,11) == 0) && (char_ok(924) == FALSE))
		spawn_creature(924);
		
	//if ((set_ter1 == 0) && (gf(0,0) > 0)) {
	//	set_ter1 = 1;
	//	set_terrain(,,,);
	//	}
		
	 if (gf(9,12) == 0) {
	if (get_ran(1,0,100) < 20)
		give_char_text_bubble(900,"Shhhh.");
	if (get_ran(1,0,100) < 20)
		give_char_text_bubble(900,"Come here.");
		}

	//if (gf(,) < 2) {
	//	inc_flag(,,1);
	//	if (gf(,) == 2)
	//		begin_talk_mode();
	//	}

	//if (((is_combat()) && (tick_difference(last_abil,get_current_tick()) > 0)) || ((is_town()) && (tick_difference(last_abil,get_current_tick()) > 5))) {
	//	last_abil = get_current_tick();
	//	}
break;

beginstate 10;
	if (gf(9,12) == 0)
		talk_no_exit(30);
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

//	print_str("");
//	set_terrain_string_range(".",1);
//	set_terrain_string_range("The sign says - .",1);
